#define DEBUG
#include <cstdio>

using namespace std;

const int maxn=1000;

class Graph {
    public:
        static const int maxno=maxn*maxn, maxsi=4*maxno;
        int n, m, ind[maxno+1], to[maxsi+1], link[maxsi+1];

        void addSide(int u, int v) {
            m++;
            to[m] = v;
            link[m] = ind[u];
            ind[u] = m;
        }
};

int main() {
#ifdef DEBUG
    freopen("src.in", "r", stdin);
    freopen("src.out", "w", stdout);
#endif

    static char map[maxn+1][maxn+1];
    int n, m;
    scanf("%d %d", &n, &m);
    for (int i=1; i<=n; i++) {
        for (int j=1; j<=m; j++) {
            scanf(" %c ", &map[i][j]);
        }
    }

    fclose(stdin);
    fclose(stdout);
    return 0;
}
